package com.overseasShopping.pojo;



import java.sql.Blob;


public class Goods {
	private String goodId;
	private String goodName;
	private int type;   // 1.电子产品  2.服装服饰 3.美妆饰品 4.食品饮料 5.婴幼用品 6.文学著作
	private float price;
	private int count;
	private String briefing;
	private java.util.Date createDate;
	private Blob image;
	private int state;  // 1.待售  2.交易成功  3.下架 
	private String listType;
	
	private DetailUser detailUser;

	public Goods() {}   
	
	public Goods(String goodId, String goodName, int type, float price,
			int count, String briefing, java.util.Date createDate, Blob image, int state,
			String listType) {
		super();
		this.goodId = goodId;
		this.goodName = goodName;
		this.type = type;
		this.price = price;
		this.count = count;
		this.briefing = briefing;
		this.createDate = createDate;
		this.image = image;
		this.state = state;
		this.listType = listType;
	}

	public Goods(String goodName, int type, float price, int count,
			String briefing, java.util.Date createDate, Blob image, int state,
			String listType) {
		super();
		this.goodName = goodName;
		this.type = type;
		this.price = price;
		this.count = count;
		this.briefing = briefing;
		this.createDate = createDate;
		this.image = image;
		this.state = state;
		this.listType = listType;
	}



	public Blob getImage() {
		return image;
	}

	public void setImage(Blob blob) {
		this.image = blob;
	}

	public String getGoodId() {
		return goodId;
	}
	public void setGoodId(String goodId) {
		this.goodId = goodId;
	}
	public String getGoodName() {
		return goodName;
	}
	public void setGoodName(String goodName) {
		this.goodName = goodName;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public String getBriefing() {
		return briefing;
	}
	public void setBriefing(String briefing) {
		this.briefing = briefing;
	}
	public java.util.Date getCreateDate() {
		return createDate;
	}
	
	public void setCreateDate(java.util.Date createDate) {
	   this.createDate = createDate;
	}
	
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}

	public String getListType() {
		return listType;
	}

	public void setListType(String listType) {
		this.listType = listType;
	}

	public DetailUser getDetailUser() {
		return detailUser;
	}

	public void setDetailUser(DetailUser detailUser) {
		this.detailUser = detailUser;
	}


	@Override
	public String toString() {
		return "Goods [goodId=" + goodId + ", goodName=" + goodName + ", type="
				+ type + ", price=" + price + ", count=" + count
				+ ", briefing=" + briefing + ", createDate=" + createDate
				+ ", image=" + image + ", state=" + state + ", listType="
				+ listType + "]";
	}

}
